package vn.lumi.smarthome.io.model;

public class DeviceState {
	private int id;
	/**
	 * Gia tri mac dinh =1 ->off
	 */
	private int value=1;
	private int RGB;
	private int blind_state;
	
	public DeviceState() {
		value = Device.DEVICE_STATE_DEVICE_OFF;
		RGB = Device.DEVICE_STATE_RGB_OFF;
		blind_state= Device.DEVICE_STATE_BLIND_STATE_STOPPED;
	}

	public DeviceState(int id, int value, int rGB,int blind_state) {
		super();
		this.id = id;
		this.value = value;
		RGB = rGB;
		this.blind_state=blind_state;
	}
	
	public DeviceState(DeviceState devState){
		this.blind_state = devState.blind_state;
		this.id = devState.id;
		this.value = devState.value;
		this.RGB = devState.RGB;
	}
	
	public boolean equals(DeviceState state){
		if(this.value == state.value
				&& this.RGB == state.RGB
				&& this.blind_state == state.blind_state)
			return true;
		else
			return false;
	}
	
	public int getBlind_state() {
		return blind_state;
	}

	public void setBlind_state(int blind_state) {
		this.blind_state = blind_state;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public int getRGB() {
		return RGB;
	}

	public void setRGB(int rGB) {
		RGB = rGB;
	}
	
	
}
